export const useSearchStore = defineStore('search', () => {

  // 茶饮搜索记录
  let teaSearchHistoryList: any = $ref([])
  const updateteaSearchHistoryList = (payload) => {
    teaSearchHistoryList = payload
  }
  // shop搜索出来的历史记录
  let shopSearchHistoryList: any = $ref([])
  const updateShopSearchHistoryList = (payload) => {
    shopSearchHistoryList = payload
  }
  return {
    teaSearchHistoryList: $$(teaSearchHistoryList),
    shopSearchHistory: $$(shopSearchHistoryList),

    updateteaSearchHistoryList,
    updateShopSearchHistoryList,
  }
}, { unistorage: { key: 'config-Search' } })

if (import.meta.hot)
  import.meta.hot.accept(acceptHMRUpdate(useSearchStore, import.meta.hot))
